package com.pojo;


import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Data
@Entity
@GenericGenerator(name = "snow",strategy = "com.id.MyID")
public class IDTest {
    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    @Id
    @GeneratedValue(generator = "snow")
    private  Long pid;
    private  String pname;
}
